#book-form.form-horizontal
  = semantic_form_for @book do |f|
    = f.inputs do
      = f.input :isbn, input_html: {class: "span7"}
      = f.input :name, input_html: {class: "span7"}
      = f.input :author, input_html: {class: "span7"}
      = f.input :publisher, input_html: {class: "span7"}
      = f.input :publish_date, as: :string, input_html: {class: "span7"}
      = f.input :description, input_html: {class: "span7"}
      = f.input :category,  as: :select, collection: Category.all, input_html: {class: "span7"}
      = f.input :image, as: :file
    = f.actions do
      = f.action :submit
      = f.action :cancel, label: "Cancel"

